#打开文件
file = open(r"E:\file1.txt", "r")
# 读取文件内容
txt = file.read()
print(txt)
# 关闭文件
file.close()